home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
archives
/
com
/
internet
/
sting
/
time.lzh
/
T_SERVER
/
T_SERVER.DOC
< prev
next >
Wrap
Text File
|
1997-08-10
|
3KB
|
50 lines
;----------------------------------------------------------------------------
;File name: T_SERVER.DOC Revision date: 1997.08.10
;Creator: Ulf Ronald Andersson Creation date: 1997.08.01
;(c)1997 by: Ulf Ronald Andersson All rights reserved
;Feedback to: dlanor@oden.se Released as FREEWARE
;----------------------------------------------------------------------------
;--- !!! --- Please read the full text below at least once. --- !!! ---
;This will help you avoid some simple but otherwise inescapable problems.
;----------------------------------------------------------------------------
T_SERVER is a simple server program that when installed constantly listens
for incoming requests to either of four ports. "Daytime" protocol requests
are expected on ports UDP(13) and TCP(13), whereas "Time" protocol requests
are expected on ports UDP(37) and TCP(37). The server responds to these
requests by sending a packet with the requested information, and then goes
back to listening for further requests.
This server will run as ACC under singletasking TOS, but may also run as
APP, GTP, PRG in any multitasking environment. STinG is a requirement too,
since this is the only TCP/IP stack which has the server interface used.
As yet all user interaction of this server is through alert boxes, and as yet
these are still modal, though this may change in future versions if warranted.
All that these do is to show which ports were successfully opened, and allow
the user to view the servers concept of local time and GMT.
When started as APP, PRG, or GTP program under a multitasking AES, the server
does not immediately start any user interaction, but behaves more like an ACC.
It merely goes dormant, awaiting future AES messages AC_OPEN or VA_START.
In the latter case it naturally responds with AV_STARTED, and in either case
it then continues with the same alert as when the ACC is opened.
In order to respond correctly to "Time" requests, T_SERVER must know your time
zone relative to GMT, and in most cases will also need to know during what
period to apply a 'daylight savings' correction. After all, even London does
not use proper GMT time during summer...! For this purpose two new variables
must be defined in STinGs DEFAULT.CFG
I use the following lines in DEFAULT.CFG:
TIME_ZONE = +60 ;Sweden is 60 minutes ahead of GMT normally
TIME_SUMMER = 03.30.10.26 ;But we add 1 hour during March 30 through Oct 25
An australian would of course have quite different values, but the algorithms
are prepared for this and should handle it correctly (otherwise tell me !).
;----------------------------------------------------------------------------
;End of file: T_SERVER.DOC
;----------------------------------------------------------------------------